package com.sanyu.controller;

import com.sanyu.pojo.TestClass;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sanyu.result.Result;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/get")
    public Result testMethod(){
        TestClass testClass = new TestClass(1,2);
        return Result.success(testClass);
    }
}
